package xyz.lilei123.demo.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.lilei123.demo.index.constants.IndexEnum;
import xyz.lilei123.demo.index.dto.BuildDto;
import xyz.lilei123.demo.service.IPositionService;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


/**
 * @author jack
 * @version 1.0
 * @date 25/01/2022 16:17
 **/
@RestController
@RequestMapping("/position")
public class PositionController {

    @Resource
    private IPositionService positionService;


    @PostMapping(value="/search")
    public List<Map<String,Object>> search(String searchKey) {
       return positionService.searchPosition(searchKey);
    }
    
}
